import request from "../axios.js";
import { baseUrl } from "@/config/env";

// 获取消息
export function getMessagePageData(params) {
  return request({
    url: baseUrl + "/message/getUserMessagePageData",
    method: "get",
    params,
  });
}

// 通过消息id修改消息
export function updateIsRead(data) {
  return request({
    url: baseUrl + "/message/updateIsRead",
    method: "put",
    data,
  });
}

// 通过消息id批量删除消息
export function deleteMessageById(data) {
  return request({
    url: baseUrl + "/message/deleteMessageById",
    method: "delete",
    data,
  });
}
